<div class="menuItems view">
<h2><?php  __('Menu Item');?></h2>
	<dl><?php $i = 0; $class = ' class="altrow"';?>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Id'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $menuItem['MenuItem']['id']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Menu Item Group'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $this->Html->link($menuItem['MenuItemGroup']['id'], array('controller' => 'menu_item_groups', 'action' => 'view', $menuItem['MenuItemGroup']['id'])); ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Item Name'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $menuItem['MenuItem']['item_name']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Item Desc'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $menuItem['MenuItem']['item_desc']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Item Base Price'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $menuItem['MenuItem']['item_base_price']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Created'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $menuItem['MenuItem']['created']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Datetime'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $menuItem['MenuItem']['datetime']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Is Deleted'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $menuItem['MenuItem']['is_deleted']; ?>
			&nbsp;
		</dd>
		<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Position In List'); ?></dt>
		<dd<?php if ($i++ % 2 == 0) echo $class;?>>
			<?php echo $menuItem['MenuItem']['position_in_list']; ?>
			&nbsp;
		</dd>
	</dl>
</div>
<div class="actions">
	<h3><?php __('Actions'); ?></h3>
	<ul>
		<li><?php echo $this->Html->link(__('Edit Menu Item', true), array('action' => 'edit', $menuItem['MenuItem']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('Delete Menu Item', true), array('action' => 'delete', $menuItem['MenuItem']['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $menuItem['MenuItem']['id'])); ?> </li>
		<li><?php echo $this->Html->link(__('List Menu Items', true), array('action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Menu Item', true), array('action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Menu Item Groups', true), array('controller' => 'menu_item_groups', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Menu Item Group', true), array('controller' => 'menu_item_groups', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Menu Item Attributes', true), array('controller' => 'menu_item_attributes', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Menu Item Attribute', true), array('controller' => 'menu_item_attributes', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Menu Item Ingredients', true), array('controller' => 'menu_item_ingredients', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Menu Item Ingredient', true), array('controller' => 'menu_item_ingredients', 'action' => 'add')); ?> </li>
		<li><?php echo $this->Html->link(__('List Order Line Items', true), array('controller' => 'order_line_items', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New Order Line Item', true), array('controller' => 'order_line_items', 'action' => 'add')); ?> </li>
	</ul>
</div>
<div class="related">
	<h3><?php __('Related Menu Item Attributes');?></h3>
	<?php if (!empty($menuItem['MenuItemAttribute'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Menu Item Id'); ?></th>
		<th><?php __('Attribute Name'); ?></th>
		<th><?php __('Attribute Value'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($menuItem['MenuItemAttribute'] as $menuItemAttribute):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $menuItemAttribute['id'];?></td>
			<td><?php echo $menuItemAttribute['menu_item_id'];?></td>
			<td><?php echo $menuItemAttribute['attribute_name'];?></td>
			<td><?php echo $menuItemAttribute['attribute_value'];?></td>
			<td><?php echo $menuItemAttribute['created'];?></td>
			<td><?php echo $menuItemAttribute['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'menu_item_attributes', 'action' => 'view', $menuItemAttribute['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'menu_item_attributes', 'action' => 'edit', $menuItemAttribute['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'menu_item_attributes', 'action' => 'delete', $menuItemAttribute['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $menuItemAttribute['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Menu Item Attribute', true), array('controller' => 'menu_item_attributes', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Menu Item Ingredients');?></h3>
	<?php if (!empty($menuItem['MenuItemIngredient'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Menu Item Id'); ?></th>
		<th><?php __('Ingredient Id'); ?></th>
		<th><?php __('Menu Item Ingredient Group Id'); ?></th>
		<th><?php __('Default Selected'); ?></th>
		<th><?php __('Price Change'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($menuItem['MenuItemIngredient'] as $menuItemIngredient):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $menuItemIngredient['menu_item_id'];?></td>
			<td><?php echo $menuItemIngredient['ingredient_id'];?></td>
			<td><?php echo $menuItemIngredient['menu_item_ingredient_group_id'];?></td>
			<td><?php echo $menuItemIngredient['default_selected'];?></td>
			<td><?php echo $menuItemIngredient['price_change'];?></td>
			<td><?php echo $menuItemIngredient['created'];?></td>
			<td><?php echo $menuItemIngredient['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'menu_item_ingredients', 'action' => 'view', $menuItemIngredient['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'menu_item_ingredients', 'action' => 'edit', $menuItemIngredient['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'menu_item_ingredients', 'action' => 'delete', $menuItemIngredient['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $menuItemIngredient['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Menu Item Ingredient', true), array('controller' => 'menu_item_ingredients', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
<div class="related">
	<h3><?php __('Related Order Line Items');?></h3>
	<?php if (!empty($menuItem['OrderLineItem'])):?>
	<table cellpadding = "0" cellspacing = "0">
	<tr>
		<th><?php __('Id'); ?></th>
		<th><?php __('Order Id'); ?></th>
		<th><?php __('User Id'); ?></th>
		<th><?php __('Menu Item Id'); ?></th>
		<th><?php __('Created'); ?></th>
		<th><?php __('Modified'); ?></th>
		<th class="actions"><?php __('Actions');?></th>
	</tr>
	<?php
		$i = 0;
		foreach ($menuItem['OrderLineItem'] as $orderLineItem):
			$class = null;
			if ($i++ % 2 == 0) {
				$class = ' class="altrow"';
			}
		?>
		<tr<?php echo $class;?>>
			<td><?php echo $orderLineItem['id'];?></td>
			<td><?php echo $orderLineItem['order_id'];?></td>
			<td><?php echo $orderLineItem['user_id'];?></td>
			<td><?php echo $orderLineItem['menu_item_id'];?></td>
			<td><?php echo $orderLineItem['created'];?></td>
			<td><?php echo $orderLineItem['modified'];?></td>
			<td class="actions">
				<?php echo $this->Html->link(__('View', true), array('controller' => 'order_line_items', 'action' => 'view', $orderLineItem['id'])); ?>
				<?php echo $this->Html->link(__('Edit', true), array('controller' => 'order_line_items', 'action' => 'edit', $orderLineItem['id'])); ?>
				<?php echo $this->Html->link(__('Delete', true), array('controller' => 'order_line_items', 'action' => 'delete', $orderLineItem['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $orderLineItem['id'])); ?>
			</td>
		</tr>
	<?php endforeach; ?>
	</table>
<?php endif; ?>

	<div class="actions">
		<ul>
			<li><?php echo $this->Html->link(__('New Order Line Item', true), array('controller' => 'order_line_items', 'action' => 'add'));?> </li>
		</ul>
	</div>
</div>
